home *** CD-ROM | disk | FTP | other *** search
- LISTATO 14 - ANNOETARISPOSTA2.ASP
-
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
- <html>
- <head>
- <title>Pagina che richiede nome e anno di nascita</title>
- </head>
-
- <body>
-
- <%
- Dim anno
- Dim eta
-
- on error resume next
-
- anno = cint(request.QueryString("anno"))
-
- if Err then
- response.write "Gentile utente, si Φ verificato un errore nella compilazione dei tuoi dati <br>"
- response.write "Descrizione dell'errore: " & Err.Description & "<br>"
- response.write "Codice dell'errore: " & Err.Number & "<br>"
- If Err.Number = 13 Then
- response.write "Devi inserire un numero come anno di nascita<br>"
- End If
- response.write "Torna alla <a href=""annoeta2.asp"">pagina precedente</a>"
- response.end
- end if
- eta = Year(Now()) - anno
- %>
-
- Ciao <%=request.QueryString("nome")%>, hai <%=eta%> anni.
-
- </body>
- </html>
-
-